import { type } from "os"

// 医院状态
export type Status = 0 | 1 // 0：未上线 1：已上线

// 医院数据类型
export interface getPagingList {
  totalElements: number //总数
  content: submitPagingList
}
// 获取数据类型
export interface submitPagingList {
  page: number
  pageSize: number
  hoscode?: string
  hosname?: string
  provinceCode?: string
  cityCode?: string
  districtCode?: string
  status?: Status
}

// 医院具体类型
export interface SpecifiType {
  page: number
  pageSize: number
  hoscode: string
  hosname: string
  provinceCode: string
  cityCode: string
  districtCode: string
  status: Status
  // 除了这些还有一个对象
  id: string
  createTime: string
  param: {
    hostypeString: string
    fullAddress: string
  }
}
// 医院列表，一个数组
export type ListInformation = SpecifiType[]

// 科室数据
export interface Departments {
  depname: string
  depcode: string
  children: IdeList | null
}
export type IdeList = Departments[]

// 排班规则响应数据规则
export interface xxxx {
  total: number
  bookingScheduleList: baseMapList
  baseMap: string
}
export interface baseMap {}
export type baseMapList = baseMap[]
